package  
{
	import flash.display.MovieClip;
	import flash.display.Stage;
	import flash.events.Event;
	import flash.events.KeyboardEvent;
	import flash.ui.Keyboard;
	/**
	 * ...
	 * @author Pedro Passos e CIA
	 */
	public class Main extends MovieClip
	{
		public static var stage:Stage;
		public static var screen:MovieClip;
		
		
		private var currentLevel:int = 1;
		var level : Level;
		
		var contaTiros : int;
		var contaInimigos : int;
		
		
		public function Main(stage:Stage) 
		{
			Main.stage = stage;
			Main.screen = new MovieClip();
			Main.stage.addChild(screen);
			
			level = new Level();
			level.setLevel(currentLevel);
			
		
			
		}
		
		
		
	
		
		public static function CleanScreen() : void
		{
			stage.removeChild(screen);
			screen = null;
			screen = new MovieClip();
			Main.stage.addChild(screen);
		}
		

	
		
	}

}